package com.starsea.book.base.base.widget.view

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import android.widget.TextView
import com.starsea.book.R

/**
 * @author Lee
 * @createTime 2023-09-27 14 GMT+8
 * @desc :
 */
class SearchTagView @JvmOverloads constructor(
  context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : FrameLayout(context, attrs, defStyleAttr) {

  init {
    LayoutInflater.from(context).inflate(R.layout.layou_search_tag_view, this)
  }

  fun setText(content: String) {
    val text = findViewById<TextView>(R.id.tv_tag)
    text.text = content
  }

}